package com.multition.demo01;

/**
 * 使用jdk中 Local 和 ResourceBundle 对象设计一个多语言环境的应用. <<Java与模式_阎宏.pdf>> p258
 *
 * TODO java.util.Properties类不支持多语言，而java.util.ResourceBundle类则支持多语言??
 *
 * https://blog.csdn.net/m0_37607945/article/details/109743441
 */
public class Client {

    public static void main(String[] args) {
        LingualResource lingZh = LingualResource.getInstance("zh" , "CN");

        String usDollarZh = lingZh.getLocaleString("say");

        System.out.println("say=" + usDollarZh);

        LingualResource ling = LingualResource.getInstance("en" , "US");

        String usDollar = ling.getLocaleString("say");

        System.out.println("say=" + usDollar);
    }

}
